//
//  ChartViewModel.swift
//  KoiAccounting
//
//  Created by 纪洪文 on 07.04.25.
//

import Foundation
class ChartViewModel : ObservableObject{
    
    @Published var weekDate = Date()
    @Published var monthDate = Date()
    @Published var yearDate = Date()
    @Published var dateSelectType : DateSelectType = .week
    @Published var categoryType: CategoryType = .expense
    
    init(dateSelectType: DateSelectType = .week, categoryType: CategoryType = .expense) {
        self.dateSelectType = dateSelectType
        self.categoryType = categoryType
    }
}
